package com.input.example;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

public class InputTest {

	public static void main(String[] args) throws IOException {

		File file = new File("C:/javabatch/inputTezt2.txt");
		FileInputStream fileInputStream = null;

		try {

			fileInputStream = new FileInputStream(file);

			BufferedReader bufferedReader = new BufferedReader(
					new InputStreamReader(new FileInputStream(new File(
							"C:/javabatch/inputTezt2.txt"))));

			String line = bufferedReader.readLine();

			System.out.println(line);

		} finally {

			if (fileInputStream != null) {
				fileInputStream.close();
			}
		}

	}

}
